<h1><%=t ".title"%></h1>

<% form_for(@material) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label t('activerecord.attributes.material.title') %><br />
    <%= f.text_field :title %>
  </p>
  <p>
    <%= f.label t('activerecord.attributes.material.sub_title') %><br />
    <%= f.text_field :sub_title %>
  </p>
  <p>
    <%= f.label t('activerecord.attributes.material.material_type') %><br />
    <%= collection_select(:material, :material_type_id, @material_types, :id, :description, :prompt =>true) %>
  </p>
  <p>
    <%= f.label t('activerecord.attributes.material.edition_number') %><br />
    <%= f.text_field :edition_number %>
  </p>
  <p>
    <%= f.label t('activerecord.attributes.material.edition_year') %><br />
    <%= f.text_field :edition_year %>
  </p>
  <p>
    <%= f.label t('activerecord.attributes.material.edition_year_numeric') %><br />
    <%= f.text_field :edition_year_numeric %>
  </p>
  <p>
    <%= f.label t('activerecord.attributes.material.isbn') %><br />
    <%= f.text_field :isbn %>
  </p>
  <p>
    <%= f.label t('activerecord.attributes.material.issn') %><br />
    <%= f.text_field :issn %>
  </p>
  <p>
    <%= f.label t('activerecord.attributes.material.price') %><br />
    <%= f.text_field :price %>
  </p>
  <p>
    <%= f.label t('activerecord.attributes.material.currency') %><br />
    <%= collection_select(:material, :currency_id, @currencies, :id, :name, :prompt =>true) %>
  </p>
  <p>
    <%= f.label t('activerecord.attributes.material.comment') %><br />
    <%= f.text_area :comment %>
  </p>
  <p>
    <%= f.label t('activerecord.attributes.material.pages') %><br />
    <%= f.text_field :pages %>
  </p>
  <p>
    <%= f.label t('activerecord.attributes.material.weight') %><br />
    <%= f.text_field :weight %>
  </p>
  <p>
    <%= f.label t('activerecord.attributes.material.height') %><br />
    <%= f.text_field :height %>
  </p>
  <p>
    <%= f.label t('activerecord.attributes.material.collection') %><br />
    <%= f.text_field :collection %>
  </p>
  <p>
    <%= f.label t('activerecord.attributes.material.section_number') %><br />
    <%= f.text_field :section_number %>
  </p>
  <p>
    <%= f.label t('activerecord.attributes.material.stock') %><br />
    <%= f.text_field :stock %>
  </p>
  <p>
    <%= f.label t('activerecord.attributes.material.show_web') %><br />
    <%= f.check_box :show_web %>
  </p>
  <p>
    <%= f.label t('activerecord.attributes.material.cataloged') %><br />
    <%= f.check_box :cataloged %>
  </p>
  <p>
    <%= f.submit t('btn_update') %>
  </p>
<% end %>

<%= link_to t('btn_show'), @material %> |
<%= link_to t('btn_back'), materials_redirect_back_path(materials_path) %>